Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return only one setting when setting_id is given (master) #780

Merged

Conversation

timopollmeier
Copy link
Member

The get_settings GMP command will now only return the setting value that
applies instead of both the user's and the global one.

Checklist:

The get_settings GMP command will now only return the setting value that
applies instead of both the user's and the global one.
" AND " ACL_GLOBAL_OR_USER_OWNS ()
/* Force the user's setting to come before the default. */
" ORDER BY coalesce (owner, 0) DESC;",
" AND (owner = (SELECT id FROM users WHERE uuid = '%s')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to not do ACL stuff manually in here, but at least it's consistent with the other branch of the 'if'.

@mattmundell mattmundell merged commit 40e87ea into greenbone:master Oct 9, 2019
@timopollmeier timopollmeier deleted the fix-get_settings-by-uuid-master branch June 9, 2020 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants